package learning.designpatterns.strategy.payments;

/**
 * Created by bibro on 16.03.14.
 */
public class CreditCardStrategy implements PaymentStrategy {

    private String name;
    private String creditCardNumber;
    private String cvv;
    private String expireDate;

    public CreditCardStrategy(String name, String creditCardNumber, String cvv, String expireDate) {
        this.name = name;
        this.creditCardNumber = creditCardNumber;
        this.cvv = cvv;
        this.expireDate = expireDate;
    }

    @Override
    public void pay(int amount) {
        System.out.println("Paying - [ " + amount + " ] with Credit card");
    }
}
